\hypertarget{classdb_organization}{
\section{db\-Organization \-Class \-Reference}
\label{classdb_organization}\index{db\-Organization@{db\-Organization}}
}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classdb_organization_adc4fa016c55f687b7432b42c85541d4c}{get\-All\-Organizations} ()
\item 
\hyperlink{classdb_organization_aa2d64a18b3dd1239a86dbfa299f579f4}{build\-Query} (\$search, \$sort)
\item 
\hyperlink{classdb_organization_ae08ebacf19877370e18d4ddc9d70cf95}{get\-Organization\-I\-D} (\$o)
\item 
\hyperlink{classdb_organization_acbf9231ed41368b197a224e0a3c508b9}{get\-Organization\-Name} (\$o)
\item 
\hyperlink{classdb_organization_a97a2ae042a57fd9b756f8f974fa1a9e2}{delete\-From\-Organization} (\$id)
\item 
\hyperlink{classdb_organization_a291bbe2b93ddff943c9bb1dc457546e4}{get\-Description} (\$o)
\item 
\hyperlink{classdb_organization_a9cd17644bf53f6f1b8d72308a7ec6bc5}{get\-Address} (\$o)
\item 
\hyperlink{classdb_organization_ac7d2df1419267484aa411f5f1464d1a1}{get\-Address1} (\$o)
\item 
\hyperlink{classdb_organization_a263dc404576137658db70379a44f686d}{get\-City} (\$o)
\item 
\hyperlink{classdb_organization_a1dd55358790256c4504031c864f99a64}{get\-State\-Name} (\$o)
\item 
\hyperlink{classdb_organization_ad3add86b9744236d8a4248b89bfb59b4}{get\-Zip} (\$o)
\item 
\hyperlink{classdb_organization_a086b4a3ee747007a1095ed8549247203}{update\-Organization} (\$id, \$o)
\item 
\hyperlink{classdb_organization_a24bbd5f3b20fee4fd811b71c9e634f63}{get\-Cities} ()
\item 
\hyperlink{classdb_organization_aab7a964c22fbeb67f39f31210c53800d}{get\-Org\-I\-D} (\$o)
\item 
\hyperlink{classdb_organization_aeb03eb9ec220070fb03079fb0b457775}{get\-Organization\-By\-Name} (\$organization\-Name)
\item 
\hyperlink{classdb_organization_aa493dade25b4eeb870085d202226f45c}{display\-Org} (\$row)
\item 
\hyperlink{classdb_organization_a61a8d732df4c84e8584454b819aa7131}{check\-If\-Exists} (\$o)
\item 
\hyperlink{classdb_organization_a7536d737c862712ea5199aefeb5c01f8}{get\-Organization} (\$organization\-Name)
\item 
\hyperlink{classdb_organization_afcd7e5c898e79a758c4bdbb67d01d5e6}{delete\-Organization} (\$o)
\end{DoxyCompactItemize}
\subsection*{\-Static \-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{classdb_organization_aea6c4d653e217f31256ded5783ed58f4}{create\-Table} ()
\item 
static \hyperlink{classdb_organization_a3d350adf56d7b3c7912f6d3d361ddc11}{add\-Organization} (\$o, \&\$id=null)
\item 
static \hyperlink{classdb_organization_a51006fa276e54bc0f48e55f4e6b0b123}{get\-All\-Name} ()
\item 
static \hyperlink{classdb_organization_a2dfd5427fef776258f77a33a83c72411}{get\-All\-By\-I\-D} (\$id, \&\$output=null)
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Communicates with the \hyperlink{class_contact}{\-Contact} control file to know which student data to get and set. \-It is the only file that has the \-S\-Q\-L queries and \-My\-S\-Q\-L connections

\begin{DoxyCopyright}{\-Copyright}
2011 by \-Dan, \-Steven, \-Brice, \-Mike, and \-Aaron. \-This program is part of \hyperlink{class_internship}{\-Internship} 2 \-Career, which is free software. \-It comes with absolutely no warranty. \-You can redistribute or modify it under the terms of the \-G\-N\-U \-General \-Public \-License as published by the \-Free \-Software \-Foundation (\-For more information, see $<$\href{http://www.gnu.org/licenses/}{\tt http\-://www.\-gnu.\-org/licenses/}).
\end{DoxyCopyright}
\begin{DoxyVersion}{\-Version}
\-February 22, 2011
\end{DoxyVersion}
\begin{DoxyAuthor}{\-Author}
\-Aaron \-Jarzombek and \-Brice \-Rader \-This is the database file. \-It contacts the control file to know which contact data to get and set. \-It is the only file that has the \-S\-Q\-L queries and \-My\-S\-Q\-L connections 
\end{DoxyAuthor}


\-Definition at line 25 of file db\-Organization.\-php.



\subsection{\-Member \-Function \-Documentation}
\hypertarget{classdb_organization_a3d350adf56d7b3c7912f6d3d361ddc11}{
\index{db\-Organization@{db\-Organization}!add\-Organization@{add\-Organization}}
\index{add\-Organization@{add\-Organization}!dbOrganization@{db\-Organization}}
\subsubsection[{add\-Organization}]{\setlength{\rightskip}{0pt plus 5cm}static add\-Organization (
\begin{DoxyParamCaption}
\item[{\$}]{o, }
\item[{\&\$}]{id = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_organization_a3d350adf56d7b3c7912f6d3d361ddc11}
\-Inserts data in the organization


\begin{DoxyParams}[1]{\-Parameters}
organization & {\em \$o} & \-The data to be inserted. \-It has values for all the columns in the table, execpt for the prigramy key value, which is of type auto-\/increment. \-It is assumed that the data does not exist in the table.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
true if the query is successful. 
\end{DoxyReturn}


\-Definition at line 335 of file db\-Organization.\-php.

\hypertarget{classdb_organization_aa2d64a18b3dd1239a86dbfa299f579f4}{
\index{db\-Organization@{db\-Organization}!build\-Query@{build\-Query}}
\index{build\-Query@{build\-Query}!dbOrganization@{db\-Organization}}
\subsubsection[{build\-Query}]{\setlength{\rightskip}{0pt plus 5cm}build\-Query (
\begin{DoxyParamCaption}
\item[{\$}]{search, }
\item[{\$}]{sort}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_aa2d64a18b3dd1239a86dbfa299f579f4}


\-Definition at line 77 of file db\-Organization.\-php.

\hypertarget{classdb_organization_a61a8d732df4c84e8584454b819aa7131}{
\index{db\-Organization@{db\-Organization}!check\-If\-Exists@{check\-If\-Exists}}
\index{check\-If\-Exists@{check\-If\-Exists}!dbOrganization@{db\-Organization}}
\subsubsection[{check\-If\-Exists}]{\setlength{\rightskip}{0pt plus 5cm}check\-If\-Exists (
\begin{DoxyParamCaption}
\item[{\$}]{o}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_a61a8d732df4c84e8584454b819aa7131}
\-Checks to see if the \-I\-D exists. 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$o} & \-Class \hyperlink{class_organization}{\-Organization} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
int \-Returns \-F\-A\-L\-S\-E if \-I\-D cannot be found, and \-T\-R\-U\-E if \-I\-D is found 
\end{DoxyReturn}


\-Definition at line 393 of file db\-Organization.\-php.

\hypertarget{classdb_organization_aea6c4d653e217f31256ded5783ed58f4}{
\index{db\-Organization@{db\-Organization}!create\-Table@{create\-Table}}
\index{create\-Table@{create\-Table}!dbOrganization@{db\-Organization}}
\subsubsection[{create\-Table}]{\setlength{\rightskip}{0pt plus 5cm}static create\-Table (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_organization_aea6c4d653e217f31256ded5783ed58f4}


\-Definition at line 27 of file db\-Organization.\-php.

\hypertarget{classdb_organization_a97a2ae042a57fd9b756f8f974fa1a9e2}{
\index{db\-Organization@{db\-Organization}!delete\-From\-Organization@{delete\-From\-Organization}}
\index{delete\-From\-Organization@{delete\-From\-Organization}!dbOrganization@{db\-Organization}}
\subsubsection[{delete\-From\-Organization}]{\setlength{\rightskip}{0pt plus 5cm}delete\-From\-Organization (
\begin{DoxyParamCaption}
\item[{\$}]{id}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_a97a2ae042a57fd9b756f8f974fa1a9e2}


\-Definition at line 149 of file db\-Organization.\-php.

\hypertarget{classdb_organization_afcd7e5c898e79a758c4bdbb67d01d5e6}{
\index{db\-Organization@{db\-Organization}!delete\-Organization@{delete\-Organization}}
\index{delete\-Organization@{delete\-Organization}!dbOrganization@{db\-Organization}}
\subsubsection[{delete\-Organization}]{\setlength{\rightskip}{0pt plus 5cm}delete\-Organization (
\begin{DoxyParamCaption}
\item[{\$}]{o}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_afcd7e5c898e79a758c4bdbb67d01d5e6}
\-Deletes an \hyperlink{class_organization}{\-Organization} from the database. 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$o} & \-Class \hyperlink{class_organization}{\-Organization} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
bool \-Returns \-T\-R\-U\-E if contact can be deleted. 
\end{DoxyReturn}


\-Definition at line 438 of file db\-Organization.\-php.

\hypertarget{classdb_organization_aa493dade25b4eeb870085d202226f45c}{
\index{db\-Organization@{db\-Organization}!display\-Org@{display\-Org}}
\index{display\-Org@{display\-Org}!dbOrganization@{db\-Organization}}
\subsubsection[{display\-Org}]{\setlength{\rightskip}{0pt plus 5cm}display\-Org (
\begin{DoxyParamCaption}
\item[{\$}]{row}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_aa493dade25b4eeb870085d202226f45c}


\-Definition at line 382 of file db\-Organization.\-php.

\hypertarget{classdb_organization_a9cd17644bf53f6f1b8d72308a7ec6bc5}{
\index{db\-Organization@{db\-Organization}!get\-Address@{get\-Address}}
\index{get\-Address@{get\-Address}!dbOrganization@{db\-Organization}}
\subsubsection[{get\-Address}]{\setlength{\rightskip}{0pt plus 5cm}get\-Address (
\begin{DoxyParamCaption}
\item[{\$}]{o}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_a9cd17644bf53f6f1b8d72308a7ec6bc5}


\-Definition at line 179 of file db\-Organization.\-php.

\hypertarget{classdb_organization_ac7d2df1419267484aa411f5f1464d1a1}{
\index{db\-Organization@{db\-Organization}!get\-Address1@{get\-Address1}}
\index{get\-Address1@{get\-Address1}!dbOrganization@{db\-Organization}}
\subsubsection[{get\-Address1}]{\setlength{\rightskip}{0pt plus 5cm}get\-Address1 (
\begin{DoxyParamCaption}
\item[{\$}]{o}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_ac7d2df1419267484aa411f5f1464d1a1}


\-Definition at line 193 of file db\-Organization.\-php.

\hypertarget{classdb_organization_a2dfd5427fef776258f77a33a83c72411}{
\index{db\-Organization@{db\-Organization}!get\-All\-By\-I\-D@{get\-All\-By\-I\-D}}
\index{get\-All\-By\-I\-D@{get\-All\-By\-I\-D}!dbOrganization@{db\-Organization}}
\subsubsection[{get\-All\-By\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}static get\-All\-By\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{id, }
\item[{\&\$}]{output = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_organization_a2dfd5427fef776258f77a33a83c72411}


\-Definition at line 472 of file db\-Organization.\-php.

\hypertarget{classdb_organization_a51006fa276e54bc0f48e55f4e6b0b123}{
\index{db\-Organization@{db\-Organization}!get\-All\-Name@{get\-All\-Name}}
\index{get\-All\-Name@{get\-All\-Name}!dbOrganization@{db\-Organization}}
\subsubsection[{get\-All\-Name}]{\setlength{\rightskip}{0pt plus 5cm}static get\-All\-Name (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_organization_a51006fa276e54bc0f48e55f4e6b0b123}


\-Definition at line 458 of file db\-Organization.\-php.

\hypertarget{classdb_organization_adc4fa016c55f687b7432b42c85541d4c}{
\index{db\-Organization@{db\-Organization}!get\-All\-Organizations@{get\-All\-Organizations}}
\index{get\-All\-Organizations@{get\-All\-Organizations}!dbOrganization@{db\-Organization}}
\subsubsection[{get\-All\-Organizations}]{\setlength{\rightskip}{0pt plus 5cm}get\-All\-Organizations (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_adc4fa016c55f687b7432b42c85541d4c}
\-Retrieves all the data in the table organization

\begin{DoxyReturn}{\-Returns}
\-Resource object that contains retrieved data. \-If query is fails, it returns false. 
\end{DoxyReturn}


\-Definition at line 60 of file db\-Organization.\-php.

\hypertarget{classdb_organization_a24bbd5f3b20fee4fd811b71c9e634f63}{
\index{db\-Organization@{db\-Organization}!get\-Cities@{get\-Cities}}
\index{get\-Cities@{get\-Cities}!dbOrganization@{db\-Organization}}
\subsubsection[{get\-Cities}]{\setlength{\rightskip}{0pt plus 5cm}get\-Cities (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_a24bbd5f3b20fee4fd811b71c9e634f63}


\-Definition at line 321 of file db\-Organization.\-php.

\hypertarget{classdb_organization_a263dc404576137658db70379a44f686d}{
\index{db\-Organization@{db\-Organization}!get\-City@{get\-City}}
\index{get\-City@{get\-City}!dbOrganization@{db\-Organization}}
\subsubsection[{get\-City}]{\setlength{\rightskip}{0pt plus 5cm}get\-City (
\begin{DoxyParamCaption}
\item[{\$}]{o}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_a263dc404576137658db70379a44f686d}


\-Definition at line 207 of file db\-Organization.\-php.

\hypertarget{classdb_organization_a291bbe2b93ddff943c9bb1dc457546e4}{
\index{db\-Organization@{db\-Organization}!get\-Description@{get\-Description}}
\index{get\-Description@{get\-Description}!dbOrganization@{db\-Organization}}
\subsubsection[{get\-Description}]{\setlength{\rightskip}{0pt plus 5cm}get\-Description (
\begin{DoxyParamCaption}
\item[{\$}]{o}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_a291bbe2b93ddff943c9bb1dc457546e4}


\-Definition at line 165 of file db\-Organization.\-php.

\hypertarget{classdb_organization_a7536d737c862712ea5199aefeb5c01f8}{
\index{db\-Organization@{db\-Organization}!get\-Organization@{get\-Organization}}
\index{get\-Organization@{get\-Organization}!dbOrganization@{db\-Organization}}
\subsubsection[{get\-Organization}]{\setlength{\rightskip}{0pt plus 5cm}get\-Organization (
\begin{DoxyParamCaption}
\item[{\$}]{organization\-Name}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_a7536d737c862712ea5199aefeb5c01f8}
\-Gets all the organization information for an organization with a certain \-I\-D. 
\begin{DoxyParams}[1]{\-Parameters}
int & {\em \$organization\-I\-D} & \-I\-D of an organization you want to get. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object \-Returns \-F\-A\-L\-S\-E if \-I\-D does not exist, or an \hyperlink{class_organization}{\-Organization} object if it does 
\end{DoxyReturn}


\-Definition at line 417 of file db\-Organization.\-php.

\hypertarget{classdb_organization_aeb03eb9ec220070fb03079fb0b457775}{
\index{db\-Organization@{db\-Organization}!get\-Organization\-By\-Name@{get\-Organization\-By\-Name}}
\index{get\-Organization\-By\-Name@{get\-Organization\-By\-Name}!dbOrganization@{db\-Organization}}
\subsubsection[{get\-Organization\-By\-Name}]{\setlength{\rightskip}{0pt plus 5cm}get\-Organization\-By\-Name (
\begin{DoxyParamCaption}
\item[{\$}]{organization\-Name}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_aeb03eb9ec220070fb03079fb0b457775}


\-Definition at line 373 of file db\-Organization.\-php.

\hypertarget{classdb_organization_ae08ebacf19877370e18d4ddc9d70cf95}{
\index{db\-Organization@{db\-Organization}!get\-Organization\-I\-D@{get\-Organization\-I\-D}}
\index{get\-Organization\-I\-D@{get\-Organization\-I\-D}!dbOrganization@{db\-Organization}}
\subsubsection[{get\-Organization\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}get\-Organization\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{o}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_ae08ebacf19877370e18d4ddc9d70cf95}
\-Gets the organization \-I\-D \begin{DoxyReturn}{\-Returns}
object \-Returns \-My\-S\-Q\-L data object 
\end{DoxyReturn}


\-Definition at line 128 of file db\-Organization.\-php.

\hypertarget{classdb_organization_acbf9231ed41368b197a224e0a3c508b9}{
\index{db\-Organization@{db\-Organization}!get\-Organization\-Name@{get\-Organization\-Name}}
\index{get\-Organization\-Name@{get\-Organization\-Name}!dbOrganization@{db\-Organization}}
\subsubsection[{get\-Organization\-Name}]{\setlength{\rightskip}{0pt plus 5cm}get\-Organization\-Name (
\begin{DoxyParamCaption}
\item[{\$}]{o}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_acbf9231ed41368b197a224e0a3c508b9}


\-Definition at line 135 of file db\-Organization.\-php.

\hypertarget{classdb_organization_aab7a964c22fbeb67f39f31210c53800d}{
\index{db\-Organization@{db\-Organization}!get\-Org\-I\-D@{get\-Org\-I\-D}}
\index{get\-Org\-I\-D@{get\-Org\-I\-D}!dbOrganization@{db\-Organization}}
\subsubsection[{get\-Org\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}get\-Org\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{o}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_aab7a964c22fbeb67f39f31210c53800d}


\-Definition at line 360 of file db\-Organization.\-php.

\hypertarget{classdb_organization_a1dd55358790256c4504031c864f99a64}{
\index{db\-Organization@{db\-Organization}!get\-State\-Name@{get\-State\-Name}}
\index{get\-State\-Name@{get\-State\-Name}!dbOrganization@{db\-Organization}}
\subsubsection[{get\-State\-Name}]{\setlength{\rightskip}{0pt plus 5cm}get\-State\-Name (
\begin{DoxyParamCaption}
\item[{\$}]{o}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_a1dd55358790256c4504031c864f99a64}


\-Definition at line 221 of file db\-Organization.\-php.

\hypertarget{classdb_organization_ad3add86b9744236d8a4248b89bfb59b4}{
\index{db\-Organization@{db\-Organization}!get\-Zip@{get\-Zip}}
\index{get\-Zip@{get\-Zip}!dbOrganization@{db\-Organization}}
\subsubsection[{get\-Zip}]{\setlength{\rightskip}{0pt plus 5cm}get\-Zip (
\begin{DoxyParamCaption}
\item[{\$}]{o}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_ad3add86b9744236d8a4248b89bfb59b4}


\-Definition at line 235 of file db\-Organization.\-php.

\hypertarget{classdb_organization_a086b4a3ee747007a1095ed8549247203}{
\index{db\-Organization@{db\-Organization}!update\-Organization@{update\-Organization}}
\index{update\-Organization@{update\-Organization}!dbOrganization@{db\-Organization}}
\subsubsection[{update\-Organization}]{\setlength{\rightskip}{0pt plus 5cm}update\-Organization (
\begin{DoxyParamCaption}
\item[{\$}]{id, }
\item[{\$}]{o}
\end{DoxyParamCaption}
)}}
\label{classdb_organization_a086b4a3ee747007a1095ed8549247203}
\-Updates organization information. 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$o} & \-Class \hyperlink{class_organization}{\-Organization} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
int \-Returns \-F\-A\-L\-S\-E if there was an error updating, else returns \-T\-R\-U\-E 
\end{DoxyReturn}


\-Definition at line 255 of file db\-Organization.\-php.



\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\-C\-:/\-Users/\-Jon/\-Downloads/\-O\-O\-P/db-\/control/\hyperlink{db_organization_8php}{db\-Organization.\-php}\end{DoxyCompactItemize}
